package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 房源信息
 */
@Data
public class House implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键ID
    private Long id;

    //房型
    private String houseType;

    //描述
    private String description;

    //位置
    private String location;

    //房东姓名
    private String landlordName;

    //联系电话
    private String phone;

    //价格
    private BigDecimal price;

    //出租状态 0-未出租  1-已出租
    private Integer status;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //逻辑删除：0-未删除 1-删除
    @TableLogic
    private Integer isDeleted;
}
